from aiohttp import web

async def hello(request):
    return web.Response(text="Hello, world")

async def save_level(request):
    resp = request.json()
    print(resp)
    return web.Response(data={"data":"OK"})

app = web.Application()
app.add_routes([web.get('/', hello),
                web.post('/', save_level)]
               )
web.run_app(app)